﻿using SignalR_ChatRoom_Server.Model.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SignalR.ChatRoom.Client.UI
{
    interface IChatService
    {
        event Action<int> UserLoggedIn;

        event Action<int> UserLoggedOut;

        event Action<int> UserDisconnected;

        event Action<int> UserReconnected;

        event Action<int, Enums.MsgType, string> OnNewMessage;

        event Action<int, Enums.MsgType, byte[]> OnMewImage;

        event Action<int> UserTyping;

        Task ConnectAsync();

        Task<List<Users>> LoginAsync(int logID,string pwd);

        Task LogoutAsync(int logID);

        Task SendMessage(int logID, string msg);

    }
}
